<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * form.php
 * @author ranuandra
 *
 * 11 Jun 2012 01:27:58
 *
 * 
 */
?>
<?php 
/*			if($flag_ketrampilan == null || $flag_ketrampilan== 0)
			{*/
?>
							<script type="text/javascript">
							$(document).ready(function() {
								$('.ketrampilan').hide();
								$('.flag').live('change', function(){
									var lvl = $(this).val();
									if(lvl != "")
									{
										if(lvl == 1)
										{
											$('.ketrampilan').show();
										}
										else
										{
											$('.ketrampilan').hide();
										}
									}
								});
								
							});
							</script>
<?php 
			//}
?>
							<div class="page-header">
								<h2>Keterampilan</h2>
							</div>
								<div class="row">
							    	<div class="span8">
							                	<?php echo Form::open(URL::base().'ketrampilan/save', array('class' => 'form-horizontal'));?>
<?php 
			//if($flag_ketrampilan == null || $flag_ketrampilan== 0)
			//{
?>
							                	<fieldset class="level">
							                		<legend>Pengetahuan dan Keterampilan</legend>
							                         <div class="control-group">
							                        	<label class="control-label" for="Bidang">Memiliki Pengetahuan dan Keterampilan Khusus?</label>
							                        	<div class="controls">
							                        		<label class="radio">
							                        			<input type="radio" name="flag_ketrampilan" value="1" class="flag" />Ya
							                        		</label>
							                        		<label class="radio">
							                        			<input type="radio" name="flag_ketrampilan"  value="0" class="flag" />Tidak
							                        		</label>
							                        	</div>
							                        </div>
							                	</fieldset>
<?php 
			//}
?>
							                    <fieldset class="ketrampilan" style="">
													<legend>Pengetahuan dan Keterampilan yg dimiliki</legend>
							                        <div class="control-group">
							                        	<label class="control-label" for="Ketrampilan">Pengetahuan & Keterampilan</label>
							                        	<div class="controls">
							                        	<?php echo Form::input('ketrampilan', '', array('class' => 'input-medium'))?>
							                        	</div>
							                        </div>
							                         <!--<div class="control-group">
							                         	<label class="control-label" for="Lama">Lama Pengalaman</label>
							                         	<div class="controls">
							                        	<?php echo Form::select('lama_pengalaman', $lama, '', array()) ?>
							                        	</div>
							                        </div>  -->
							                        <div class="control-group">
							                        	<label class="control-label" for="Level">Level Pengetahuan & Keterampilan</label>
							                        	<div class="controls">
							                        	<?php echo Form::select('level', $level, '', array())?>
							                        	</div>
							                        </div>
							                    </fieldset>
							                    <fieldset>
							                         <div class="form-actions">
							                             <button name="submit" class="btn btn-primary" type="submit">Save</button>
							                             <button class="btn btn-primary">Cancel</button>
							                        </div>                   
							                    </fieldset>
							                  <?php echo Form::close()?>   	
							    	</div>
							    </div>	
